using UnityEngine;
using System.Collections;

public class DieOnCompletion : MonoBehaviour {
	
	// Use this for initialization
	void Start () {
		Invoke("Die", Duration);
	}
	
	public float Duration { get { return particleSystem.duration; } }
	
	void Die()
	{
		Destroy(gameObject);
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
